﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
///BBasepage 的摘要说明
/// </summary>
public class BBasepage : BasePage
{
    // Methods
    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);
        base.IncludeEditorJS();
        if (!(base.IsLogin && !(base.GetCookie("admin") == string.Empty)))
        {
            this.SetError("请先登录");
            base.SetRefer(base.Request.Url.AbsoluteUri);
            base.Response.Redirect("~/account/login.aspx");
            base.Response.End();
        }
        else if (!base.IsManage)
        {
            this.SetError("您不具备管理权限");
            base.Response.Redirect("~/index.aspx");
            base.Response.End();
        }
    }
}


